#define  _CRT_SECURE_NO_WARNINGS 1	
#include <stdio.h>
void sort(int a[], int sz)
{
	for (int i = 0; i < sz - 1; i++)
	{
		for (int j = 0; j < sz - 1 - i; j++)
		{
			if (a[j] < a[j + 1])
			{
				int tmp = a[j];
				a[j] = a[j + 1];
				a[j + 1] = tmp;
			}
		}
	}
}
int main()
{
	int a[10] = { 1,2,3,4,5,6,7,8,9,10 };
	int sz = sizeof(a) / sizeof(a[0]);
	for (int i = 0; i < sz; i++)
		printf("%d ", a[i]);
	printf("\n");
	sort(a, sz);
	for (int i = 0; i < sz; i++)
		printf("%d ", a[i]);
	return 0;
}